package com.indusfo.spc.client.mapper;

import com.indusfo.spc.pojo.OrderFlow;
import com.indusfo.spc.pojo.OrderStation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenm
 * @create 2019-12-10 19:09
 */
public interface ClientOrderStationMapper {


  List<OrderStation> selectByOrderFlowId(@Param("orderFlowId") Integer orderFlowId);

  List<OrderStation> selectByOrderFlowIdsAndStationId(@Param("orderFlowIds") List<Integer> orderFlowIds,@Param("stationId")Integer stationId);

  List<Integer> selectStationIdByOrderFlowIdsAndStationId(@Param("orderFlowIds") List<Integer> orderFlowIds,@Param("stationId") Integer stationId);

  List<OrderStation> selectByOrderTechId(@Param("orderTechId") Integer orderTechId);

  List<Integer> selectStationIdByOrderTechId(@Param("orderTechId") Integer orderTechId);

  List<OrderStation> selectByOrderFlowIdAndStationId(@Param("orderFlowId") Integer orderFlowId, @Param("stationId") Integer stationId);

  Integer deleteOrderStationByOrderFlowId(@Param("orderFlowId") Integer orderFlowId);
}
